﻿using AutoMapper;
using Read.Entity;
using Read.VModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Read.BLL
{
    public class Init
    {
         static Init()
        {
            Mapper.Initialize(cfg =>
            {
                cfg.CreateMap<Article, ArticleV>()
                .ForMember(dto => dto.AuthorName, opt => opt.MapFrom(src => src.RssId));
            });
        }
    }
}
